<h1>Editing profile</h1>

<%= error_messages_for :profile %>

<% form_for(@profile) do |f| %>
  <p>
    <b>name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>mobile phone number</b><br />
    <%= f.text_field :mobilePhoneNo %>
  </p>

  <p>
    <b>address</b><br />
    <%= f.text_field :address %>
  </p>
  
  <p>
    <b>Date of Birth</b><br />
    <%= f.date_select :dob %>
  </p>
  
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @profile %> |
<%= link_to 'Back', profiles_path %>
